package club.wx3609.images.interfaces.repository;

import club.wx3609.images.entity.Message;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MessageRepository extends JpaRepository<Message,Integer> {

    public List<Message> findBySender(String sender);

    public List<Message> findByReceiver(String receiver);

}
